//package org.example.filter;
//
//import org.springframework.cloud.gateway.route.RouteLocator;
//import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class GatewayRoutes {
//
//    @Bean
//    public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
//        return builder.routes()
//                .route("category_route", r -> r.path("/categories/**")
//                        .uri("http://localhost:5555"))
//                .route("question_route", r -> r.path("/questions/**")
//                        .uri("http://localhost:5556"))
//                .route("type_route", r -> r.path("/type/**")
//                        .uri("http://localhost:5558"))
//                .route("user_router", r -> r.path("/user/**")
//                        .uri("http://localhost:8991"))
//                .route("userProfile_router", r -> r.path("/userProfile/**")
//                        .uri("http://localhost:8991"))
//                .route("interviewer_router", r -> r.path("/interviewer/**")
//                        .uri("http://localhost:2563"))
//                .route("interviews_router", r -> r.path("/interviews/**")
//                        .uri("http://localhost:8080"))
//                .build();
//    }
//}